package com.tensquare.openfeign.client.impl;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.tensquare.openfeign.client.GatheringClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * ------------------------------
 * 功能：对服务调用失败时的处理
 * 作者：WF
 * 微信：hbxfwf13590332912
 * 创建时间：2021/8/31-15:08
 * ------------------------------
 */
@Component("gatheringClientImpl2")
public class GatheringClientImpl implements GatheringClient {
    @Override
    public AjaxResult findAll() {
        System.out.println("查看活动列表出现问题了。。。");
        Map<String,String> errors= new HashMap<>();
        errors.put("msg","查看活动列表出现问题了");
        return AjaxResult.success(errors);
    }

    @Override
    public AjaxResult findById2(String id) {
        System.out.println("查看单个活动出现问题了。。。");
        Map<String,String> errors= new HashMap<>();
        errors.put("msg","查看单个活动出现问题了");
        return AjaxResult.success(errors);
    }
}
